package com.ruoyi.web.controller.combat.apprisk;

import com.ruoyi.combat.domain.apprisk.CombatApplication;
import com.ruoyi.combat.service.apprisk.CombatApplicationScreenService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 应用服务抗信息泄露大屏接口
 */
@RestController
@RequestMapping("/combat/applicationScreen")
@Api(tags = "课题一：应用服务检测-大屏接口")
public class CombatApplicationScreenController extends BaseController {

    @Autowired
    private CombatApplicationScreenService screenService;

    @GetMapping("/warnList")
    @ApiOperation(value = "风险警告列表")
    public TableDataInfo warnList() {
        startPage();
        return screenService.warnList();
    }
    @GetMapping("/userAppNum")
    @ApiOperation(value = "终端用户APP安装量")
    public AjaxResult userAppNum() {
        return success(screenService.userAppNum());
    }
    @GetMapping("/appRiskCount")
    @ApiOperation(value = "应用风险统计")
    public AjaxResult appRiskCount() {
        return success(screenService.appRiskCount());
    }
    @GetMapping("/appCheckCount")
    @ApiOperation(value = "应用检测统计")
    public AjaxResult appCheckCount() {
        return success(screenService.appCheckCount());
    }

    @GetMapping("/getRiskInfo")
    @ApiOperation(value = "应用列表")
    public AjaxResult getRiskInfo() {
//        List<CombatApplication> list = screenService.selectCombatApplicationList(new CombatApplication());
        return success("list");
    }


}
